refactor(timer-progress): extract logic into helper functions in timer-progress (@Leonabcd123)#7364
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request refactors the timer-progress.ts file by extracting repeated animation and update logic into helper functions to reduce code duplication. The refactoring aims to make the code more maintainable by consolidating similar animation patterns and timer update logic.
Changes:
- Extracted
showElement()helper to consolidate show animation logic across different timer styles - Extracted
hideElement()helper to consolidate hide animation logic with conditional class addition - Extracted
updateTimer()andupdateTimerInputLength()helpers to reduce duplication in timer display updates
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.